package behavioralPattern.visitor.example01.product;

import behavioralPattern.visitor.example01.Acceptable;
import behavioralPattern.visitor.example01.visitor.Visitor;

import java.time.LocalDate;

/**
 * 具体数据元素
 */
public class Candy extends Product implements Acceptable {

    public Candy(String name, LocalDate date, double price) {
        super(name, date, price);
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }
}
